package com.boge.flowabley.listener;

import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;

public class MyListiner implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println("MyListiner ------------ notify ------执行了 ------");
        if (EVENTNAME_CREATE.equals(delegateTask.getEventName())) {
            //用户节点创建 ,然后指派审批人
            delegateTask.setAssignee("zhangsan");
            System.out.println("---EVENTNAME_CREATE---");
        }
    }
}
